﻿using Model_Base.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;

namespace Model_Base.Models
{
    public class MusicStoreDBinitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { ArtistName = "老王的隔壁"});
            context.Genres.Add(new Genre { GenreName = "名族风的古风曲",Description = "彰显名族的气质" });
            context.Albums.Add(new Album 
            {
                Artist = new Artist {ArtistName = "code" },
                Genre = new Genre { GenreName = "rock"},
                Title="xxxxxxxxxxxx",
                Proice = 699,
                AlbumStrUrl = "中华人民共和国"
            });
            base.Seed(context);
        }
    }
}